import React, { Component } from 'react';
import './Myzhide.scss'
import {index_goodlist} from '../utils/api'
// import pic1 from '../imgs/z02.gif'
// import pic2 from '../imgs/z03.gif'
// import pic3 from '../imgs/z04.gif'
// import pic4 from '../imgs/z05.gif'
// import pic5 from '../imgs/z06.gif'
// import pic6 from '../imgs/z07.gif'

class Myzhide extends Component {
    constructor(props){
        super(props);
        this.state = {
            
            arr:[]
        }
    }
    componentDidMount(){
        index_goodlist().then((res)=>{
            console.log(res.data)
            this.setState({
                arr:res.data.list
            })
        })
    }
    render() {
        return (

            <div className="zhi">              
                {
                    this.state.arr.map((item,index)=>{
                        return(
                        <div className="list" key={index}>
                            <div className="shop">
                                <div className="imgbox">
                                    <img src={item.pic} alt="" />
                                </div>
                                <p className="ming">{item.name}</p>
                                <p className="yuan">{item.activityTags}</p>
                                <p className="qiang">{item.salesPrice.value}</p>
                            </div>
                        </div>
                        )
                    })
                }
            </div>
        );
    }
}

export default Myzhide;